package cn.idietrade.idietradegoodsorder8003.demo.service.impl;

import cn.idietrade.common.pojo.SecondOrder;
import cn.idietrade.idietradegoodsorder8003.demo.mapper.GoodsOrderMapper;
import cn.idietrade.idietradegoodsorder8003.demo.service.GoodsOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 作者：李永康
 * @createTime 2022/11/30 15:07
 * @description 描述
 */
@Service
public class GoodsOrderServiceImpl implements GoodsOrderService {
    @Resource
    private GoodsOrderMapper goodsOrderMapper;
    @Override
    public List<SecondOrder> orderList(Integer buyerId,Integer sellerId,Integer orderNo) {
        return goodsOrderMapper.orderList(buyerId, sellerId,orderNo);
    }

    @Override
    public int updateGoodsNum(Integer goodsId, Integer num) {
        return goodsOrderMapper.updateGoodsNum(goodsId,num);
    }
}
